package workspace;

import java.util.Scanner;

public class test21 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        boolean[] st= new boolean[n+100];
        int [] primes = new int[n];
        int cnt = 0;
        int m = n;
        for (int i = 2; i <= m ; i++) {
            while(n % i == 0 ){
                primes[cnt++] = i;
                n = n / i;
            }
        }
        System.out.print(m+"=");
        for (int i = 0; i < cnt; i++) {
            if(i==0){
                System.out.print(primes[i]);
            }else{
                System.out.print("*"+primes[i]);
            }
        }

    }
}
